'use strict';
const path = require('path');

exports.cors = {
  enable: true,
  package: 'egg-cors',
};

exports.session={
  enable:true,
  key:'egg_k',
  maxAge: 24 * 3600 * 1000, // 1 day
  httpOnly: true,
  encrypt: true,
  renew: true,
}

exports.mongoose = {
  enable: true,
  package: 'egg-mongoose',
};
//插件配置
// had enabled by egg
// exports.static = true;
exports.nunjucks = {
    enable: true,
    package: 'egg-view-nunjucks'
};
exports.mysql = {
  enable: true,
  package: 'egg-mysql',
};

exports.validate = {
  enable: true,
  package: 'egg-validate',
};

//配置自定义插件
exports.ua = {
  enable: true,
  path: path.join(__dirname, '../lib/plugin/egg-ua'),
};
exports.i18n = {
  enable: true,
  package: 'egg-i18n',
};


